package com.jxnu.duewang.zmly.zouZhen.activity;

import android.databinding.DataBindingUtil;
import android.support.v4.util.Pair;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.jxnu.duewang.zmly.R;
import com.jxnu.duewang.zmly.databinding.ActivityMusicBinding;
import com.jxnu.duewang.zmly.zouZhen.adapter.two.CommonRecycleAdapter;
import com.jxnu.duewang.zmly.zouZhen.widget.RxBus;

import java.util.ArrayList;
import java.util.HashMap;

public class MusicActivity extends AppCompatActivity {

    private ActivityMusicBinding mBinding;
    private CommonRecycleAdapter<Object> mAdapter;
    private ArrayList<Object> mList;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mBinding = DataBindingUtil.setContentView(this, R.layout.activity_music);
        HashMap<Class<?>, Pair<Integer,Integer>> map = new HashMap<>();
        map.put(RxBus.class,Pair.create(R.layout.two_sideslip_search,0));
        mList = new ArrayList<>();
        mList.add(RxBus.class);
        mAdapter=new CommonRecycleAdapter<>(this, mList,map);
        mBinding.musicList.setAdapter(mAdapter);
    }
}
